package com.colin.mvp.download.presenter

import com.colin.mvp.download.model.MainModel
import com.colin.mvp.download.model.MainModel1
import com.colin.utils.LogUtil
import com.colin.view.MainView
import java.io.File

/**
 * Created by colin on 2018/1/19.
 */
class MainPresenterImpl:MainPresenter{



    var view: MainView
    var model: MainModel
    constructor(view:MainView ){
        this.view  = view
        model = MainModel1()
    }

    override fun downloadFile(apkUrl: String) {
        LogUtil.e("apkUrl:"+apkUrl)
        model.downloadFile(apkUrl)
    }
    override fun uploadFiles(vararg files: File){
        model.uploadFiles(*files)
    }


}